package com.tensquare.user.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author Macross
 * @Type Admin.java
 * @Desc 管理员信息类
 * @date 2019/12/23 12:09
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "tb_admin")
@Entity
@ApiModel(description = "管理员信息类")
public class Admin implements Serializable {

    @Id
    @ApiModelProperty(value = "ID")
    private String id;

    @Column(name = "loginname")
    @ApiModelProperty(value = "登录名称")
    private String loginName;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "状态")
    private String state;
}
